package com.md.api.dao;

import com.md.api.entity.VipProperties;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface VipPropertiesMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(VipProperties record);

    VipProperties getByServiceCode(String serviceCode);

    List<VipProperties> selectAll();
    List<VipProperties> sysList();

    List<VipProperties> getFreeService();

    int update(VipProperties record);

    VipProperties getLastVip(@Param("weight") Integer weight);

    VipProperties getWeightVip(@Param("weight") Integer weight);
}